package GUI;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Image;

import javax.swing.AbstractButton;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

public class PanelGeneralCenterPanel extends JPanel {
	private MainMenu mainMenu;
	
	public PanelGeneralCenterPanel(MainMenu mm) {
		super();
		this.mainMenu = mm;
		Icon exitIcon = new ImageIcon("exit-icon.png");
		Image img = ((ImageIcon) exitIcon).getImage();
		Image newimg = img.getScaledInstance(40, 40,
				java.awt.Image.SCALE_SMOOTH);
		exitIcon = new ImageIcon(newimg);
		
		
		
		//button_exit = new JButton("יציאה", exitIcon);
		//button_exit.setVerticalTextPosition(AbstractButton.BOTTOM);
	//	button_exit.setHorizontalTextPosition(AbstractButton.CENTER);
		this.setPreferredSize(new Dimension(500, 100));
		this.setBackground(new Color(204, 153, 153));
		this.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
	}
}
